<div id="loginform" style="float:right;">
   <g:form controller="person">
       <g:if test="${!session.user}">
            <p style="color:white;">Name: <g:textField name="username" style="width:100px;"/>
            Password: <g:passwordField name="password" style="width:100px;"/>
            <g:actionSubmit  value="Login" action="authenticate" />
            </p>
        </g:if>
        <g:else>
           <p style="color:white;">
               ${session.user.name} ${session.user.password}
               <g:actionSubmit  value="Logout" action="logout" />
           </p>
        </g:else>
    </g:form>
</div>